<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddGoodsTypeToMerchantMedicineTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('merchant_medicine', function (Blueprint $table) {
            $table->integer('goods_type')->default(0)
                ->comment('0标准药品，1保健食品，2中药材、中药饮片/原料，3医疗器械，更多待增加')
                ->after('drug_type');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('merchant_medicine', function (Blueprint $table) {
            //
        });
    }
}
